package com.ejuornal.util;

import java.util.Date;

public class DateUtil {
    public static int dataCutDate(Date date) {
        Date date2  = new Date();
        long l1 = date2.getTime();
        long l2 = date.getTime();
        int day = (int) ((l2 - l1)/1000/60/60/24);
        return day;
    }
    public static void main(String[] args) {
        
    }
}
